package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.Demand;
import com.woniuxy.entity.DisRequirements;
import com.woniuxy.entity.WareHousing;
import com.woniuxy.mapper.DemandMapper;
import com.woniuxy.service.DemandService;

@Service
public class DemandServiceImpl implements DemandService {
	@Autowired
	private DemandMapper demandMapper;

	@Override
	public List<Demand> findDemand() {
		
		return demandMapper.findDemand();
	}

	@Override
	public Demand findDetailByOrderno(String orderno) {
		
		return demandMapper.findDetailByOrderno(orderno);
	}

	@Override
	public int insertDemand(Demand demand) {
		int i=demandMapper.insertDemand(demand);
		return i;
	}

	@Override
	public int updateDemandByOrderno(Demand demand) {
		int i=demandMapper.updateDemandByOrderno(demand);
		return i;
	}

	@Override
	public int delDemandByOrderno(String orderno) {
		int i=demandMapper.delDemandByOrderno(orderno);
		return i;
	}

	@Override
	public int insertDisprocurement(DisRequirements dis) {
		int i=demandMapper.insertDisprocurement(dis);
		return i;
	}

	@Override
	public int changeStatus(Demand demand) {
		int i=demandMapper.changeStatus(demand);
		return i;
	}

	@Override
	public List<WareHousing> findWarehousing() {
		
		return demandMapper.findWarehousing();
	}

}
